package com.guigu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.pojo.Commodity;
import com.guigu.pojo.Commodity2;
import com.guigu.pojo.ProductImage;
import com.guigu.pojo.Quote;
import com.guigu.vo.QuoteVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityMapper extends BaseMapper<Commodity> {
    //查询最大id
    int selectMaxId();
    //根据id添加图片
    int insertImage(ProductImage productImage);
    //分页查询所有商品
    List<Commodity> selectAll(Integer pageNum, Integer pageSize);
    //查询供应商报价
    List<Quote> selectPrice(int id, Integer pageNum, Integer pageSize);

}
